Method for dealing with missing or untimely synchronization signals in digital communications systems

ABSTRACT

A method for handling missing or untimely synchronization signals in digital communications systems. Upon detecting the absence of a synchronization signal, an estimation of the absent synchronization signal is made based on a plurality of previously received synchronization signals, and the estimated synchronization signal is used in place of the absent synchronization signal. The estimated synchronization signal is corrected upon the receipt of a subsequent synchronization signal.

FIELD OF THE INVENTION

[0001] The present invention relates to methods for dealing with missing or untimely signals in digital communications systems. More particularly, the present invention relates to methods for handling missing or untimely synchronization signals, including MPEG Program Clock Reference (PRC) signals, in digital communications systems.

BACKGROUND OF THE INVENTION

[0002] An important constraint in communications systems is the capacity or bandwidth of communications channels. Bandwidth limitations may, for example, limit the amount of information that can be transmitted using a particular channel. Accordingly, considerable effort has been devoted to the development of techniques for compressing the information of a voice conversation or a video program, for example, so that such information can be transmitted using a channel with restricted bandwidth. Compression techniques known to those of skill in the art allow multiple digitized video programs, such as movies, to be transmitted across communications channels that have a fixed amount of bandwidth. Such channels include those derived using twisted wire pair cable, which were historically installed in local telephone systems, and which were designed primarily for analog voice communication.

[0003] A digitized video program, which typically comprises one video signal, one or more audio signals, and one or more data signals, may be compressed by an encoder using a standard such as ISO/IEC Standard 13818, also known as MPEG-2, which is know to those of skill in the art. This may involve, among other techniques, organizing the video program into frames, compressing the video information (for example by eliminating or reducing redundant information in each frame, as well as in adjacent frames), and producing information that enables a decoder or a receiver to “decompress” or restore the original video program from the compressed information.

[0004] Because video compression may employ both temporal as well as spatial compression techniques, an encoder may reorder the compressed video frames before transmitting them. Under such circumstances, the encoder typically embeds synchronization signals in the header of the compressed video frames that tell the decoder when to decode and when to present the corresponding frames. Synchronization signals also help the decoder to keep the video and audio data of each program locked together.

[0005] When multiple programs are multiplexed into a transport stream, an encoder may also need to embed an additional synchronization signal into the transport stream. This additional synchronization signal, which is referred to as the Program Clock Reference (PCR) in the MPEG-2 standard, represents the system clock used to encode a particular program. The system clock signal needs to be transmitted to the decoder in order to help the decoder properly decode and display programs that were encoded using different clocks. That is, time stamps and other synchronization signals embedded by an encoder into a compressed program are only meaningful if the encoder system clock can be recreated at the decoder.

[0006] After a transport stream consisting of multiple compressed programs has been encoded and assembled, the transport stream may also be packetized and passed on to a lower layer in the communications network, which may repacketize the transport stream and embed further information, such as Forward Error Correction (FEC) information, before actually transmitting the stream across a network. For example, MPEG transport stream packets may be placed into a Convergence Sublayer Protocol Data Unit (CS-PDU), mapped into multiple Asynchronous Transfer Mode (ATM) cells, and finally transmitted to a receiving system across an ATM network using twisted wire cable, fiber optic cable, or radio or other communications media.

[0007] As the digital signals in ATM cells travel through an ATM network, the signals, including synchronization signals, can be corrupted due to cell loss, cell misrouting, and bit errors that occur during transmission. In addition, network congestion and traffic conditions may lead to the delay in the transmission or receipt of the digital signals, including the synchronization signals. Because the efficiency of ATM and other packet networks relies in part on the ability of receivers in the networks, as well as the networks themselves, to deal with occasional packet delay and packet loss, it is inevitable that synchronization and other types of signals transmitted across such networks will occasionally be delayed, corrupted, or lost altogether. When compressed video programs are transmitted across packet networks, such delays, corruption, and losses of synchronization signals typically result in a reduction in the quality of the video image presented or displayed at the receiver, or the loss of the image altogether.

[0008] For the foregoing reasons, there is a need for a method of enabling decoders and other digital communications systems receivers to continue to operate when synchronization signals are either delayed, corrupted, or lost altogether.

SUMMARY OF THE INVENTION

[0009] The present invention is directed to a method for dealing with or handling missing or untimely synchronization signals, such as Presentation Time Stamp (PTS) and Program Clock Reference (PCR) signals, in digital communications systems. Under normal operating conditions, a decoder or other type of receiver receives periodic synchronization signals. In the present invention, when the decoder detects the absence of a synchronization signal, it estimates what the absent synchronization signal would have been, based on the previously received synchronization signals. The decoder then uses the estimated synchronization signal in place of the absent synchronization signal.

[0010] In a preferred embodiment, when the decoder receives a subsequent, valid synchronization signal, it corrects the previous estimated synchronization signal, based on the valid synchronization signal. Correcting the estimated synchronization signal results in improved estimation of future missing synchronization signals.

[0011] The MPEG-2 standard provides for the transmission of three types of compressed video frames. An Intra-frame, or I-frame, is a complete, digitized video frame that can be decoded without reference to any other frame. A Prediction frame, or P-frame, does not include a complete video image; rather, a P-frame includes information that enables the decoder to predict, with an acceptable degree of accuracy, what the video frame should display, based on prior I-frames or P-frames. A Bi-directional frame, or B-frame, also does not include a complete video image; rather, a B-frame includes information that enables the decoder to predict what the video frame should display, based on either prior or subsequent I-frames or P-frames. If a B-frame depends on a subsequent I-frame or P-frame, the decoder needs to transmit the subsequent I-frame or P-frame prior to the B-frame.

[0012] Thus, an I-frame may itself be thought of as a type of synchronization signal, as I-frames “reset” the decoder, in that the decoder can decode I-frames without reference to any previously received frames.

[0013] When a decoder detects the absence of an I-frame, the present invention teaches that the decoder should keep decoding and processing subsequently-received P-frames and B-frames as if the I-frame had been received. Although the resulting picture quality will not be perfect, it has been found that it will be acceptable, especially in narrowband transmission networks such as twisted wire pair cable networks. Furthermore, it has also been found that the picture quality will improve as more P-frames and B-frames are decoded and presented subsequent to the missing I-frame.

[0014] Alternatively, the decoder can construct a “null” I-frame, comprising an estimated synchronization signal and no video data, and decode the “null” I-frame in place of the absent I-frame. As before, the estimated synchronization signal can be corrected when the next valid synchronization signal is received, so as to improve the quality of future synchronization signal estimates.

[0015] Sometimes synchronization signals are received by a decoder, but on an untimely basis. For example, variations in queueing delays in network switches can result in packet delay variation, or jitter. The presence of jitter introduced by the underlying network or by the protocol layers below the MPEG-2 layer may distort the reconstructed clock at the MPEG-2 decoder. That, in turn, may degrade the quality of the video frames when the synchronization signals are generated from the recovered clock.

[0016] Although an MPEG decoder is designed to adjust its phase-locked loop (PLL) to match the frequency of the PCR signal transmitted by an encoder, jitter can result in a phase error between the decoder's PLL and the PCR signal. According to the present invention, the PLL should be adjusted based on the phase error, but only if the phase error is below a predetermined phase error threshold. If the phase error is at or above the predetermined phase error threshold, the decoder should determine if the error is a spike or an anomaly. If it is, the phase error should be ignored. If it is not, the decoder's PLL should be adjusted based on a large-error-correction procedure. This avoids adjusting the PLL by the entire amount of the phase error, which could cause undesirable artifacts in the presented image. The specific parameters of the large-error-correction procedure depend on the particular system configuration (e.g., whether the underlying communications network system is an Asymmetric Digital Subscriber Loop (ADSL) system, a Very-high-speed Digital Subscriber Loop (VDSL) system, or a satellite system).

[0017] In addition, the present invention teaches that a decoder can increment an error count every time it detects a phase error, so that the decoder can be reset when the error count reaches a predetermined threshold.

[0018] It is an object of the present invention to improve the performance of MPEG decoders and other digital receivers in the absence of synchronization signals.

[0019] It is another object of the present invention to enable an MPEG decoder or other type of digital communications receiver to handle missing synchronization signals.

[0020] It is a further object of the present invention to enable an MPEG decoder or other type of receiver to estimate absent synchronization signals based on previously received synchronization signals.

[0021] It is a further object of the present invention to enable an MPEG decoder or other type of receiver to correct an estimated synchronization signal upon receipt of a subsequent valid synchronization signal.

[0022] It is a further object of the present invention to enable an MPEG decoder to handle missing I-frames.

[0023] It is a further object of the present invention to reduce the effects of jitter in synchronization signals such as Program Clock Reference (PRC) signals.

[0024] The foregoing and other features, aspects, and advantages of the present invention will become more apparent from the following detailed description, which should be read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate the embodiments of the present invention and, together with the description, serve to explain the principles of the invention.

[0026] In the drawings:

[0027]FIG. 1 illustrates an MPEG-2 encoder that compresses and transmits multiple programs across a communications network;

[0028]FIG. 2 illustrates an MPEG-2 decoder in which the methods of the present invention may be utilized;

[0029]FIG. 3 illustrates a simplified MPEG-2 elementary stream;

[0030]FIG. 4 illustrates an MPEG-2 transport stream packet;

[0031]FIG. 5 provides a flow chart depicting a preferred embodiment of the method of the present invention for handling missing synchronization signals; and

[0032]FIG. 6 provides a flow chart depicting a preferred embodiment of the method of the present invention for handling untimely synchronization information.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0033] The present invention will now be described with reference to the accompanying drawings, which are provided as illustrative examples of preferred embodiments of the present invention. In describing the preferred embodiments illustrated in the drawings, specific terminology is used for the sake of clarity. However, the invention is not intended to be limited to the specific terms that are selected. Rather, each specific term is intended to include all equivalents that operate in a similar or substantially similar manner to accomplish a similar or substantially similar result.

[0034] With reference to the drawings in general, and FIGS. 1 through 6 in particular, the methods of the present invention are disclosed.

[0035]FIG. 1 illustrates an MPEG-2 encoder that compresses and transmits multiple programs across a communications network. As depicted in FIG. 1, Program 1 is comprised of video data stream 101 and audio data stream 103. Video encoder 105 encodes video data stream 101 into an MPEG video elementary stream 111. Packetizer 115 then packetizes video elementary stream 111 into a video packetized elementary stream (PES) 121. Similarly, audio encoder 107 encodes audio data stream 103 into an MPEG audio elementary stream 113. Packetizer 117 then packetizes audio elementary stream 113 into an audio PES 123. A 27 MHz clock 110 drives both video encoder 105 and audio encoder 107.

[0036] As shown in FIG. 1, the video and data signals comprising Program 2 undergo a similar process. Video encoder 155 encodes video data stream 151 into video elementary stream 161, which packetizer 165 then packetizes into video PES 171. Audio encoder 157 encodes audio data stream 153 into audio elementary stream 163, which packetizer 167 then packetizes into audio PES 173. Clock 160 drives both video encoder 155 and audio encoder 157. Although clock 110 and clock 160 are both nominally 27 MHz clocks, their actual frequencies may differ slightly.

[0037] In the configuration shown in FIG. 1, each program has one video data stream and one audio data stream. In alternative configurations (not shown), a program may have no video or audio stream, or multiple video or audio streams. Alternatively, a program may also have data streams that represent neither video nor audio signals.

[0038] Returning to the configuration shown in FIG. 1, video PES 121, audio PES 123, and clock 110 signals are fed into transport stream multiplexer 180. Video PES 171, audio PES 173, and clock 160 signals are also fed into transport stream multiplexer 180. In an alternative configuration (not shown), either only one program, or three or more programs may be fed into a transport stream multiplexer. As depicted in FIG. 1, transport stream multiplexer 180 multiplexes the compressed video and data signals of Program 1, the compressed video and data signals of Program 2, a program clock reference (PCR) signal that represents clock 110, and a program clock reference (PCR) signal that represents clock 160, into a combined MPEG transport stream 191. Transport stream 191 is then transmitted across communications network 195.

[0039]FIG. 2 illustrates an MPEG-2 decoder in which the methods of the present invention may be utilized. As shown in FIG. 2, transport stream decoder 200 receives MPEG transport stream 191 from communications network 195. Transport stream decoder 200 then selects the video and audio streams that correspond to the program that is to be decoded. In the configuration shown in FIG. 2, transport stream decoder 200 feeds video elementary stream 201 into video decoder 205, which decodes video elementary stream 201 into video data stream 211. Similarly, transport stream decoder 200 feeds audio elementary stream 203 into audio decoder 207, which decodes audio elementary stream 203 into audio data stream 213. In an alternative configuration (not shown), multiple video, audio, or data streams may be decoded.

[0040] As depicted in FIG. 2, transport stream decoder 200 also feeds the PCR signal corresponding to the clock of the program being decoded into a phase-locked loop (PLL). More specifically, the MPEG-2 decoder shown in FIG. 2 comprises 27 MHz voltage-controlled oscillator (VCO) 260, whose output clocks the MPEG-2 decoder. Phase detector 263 measures the phase difference between the clock signal generated by VCO 260 and PCR signal 250. As depicted in FIG. 2, the phase difference is filtered through low-pass filter 265 and fed back into VCO 260. The feedback into VCO 260 is designed to adjust VCO 260 to match PCR signal 250.

[0041]FIG. 3 is a simplified depiction of an MPEG-2 video elementary stream. The segment of the stream shown in FIG. 3 is comprised of six frames. The frames are either I-frames, P-frames, or B-frames. Encoded with each frame in FIG. 3 is a Presentation Time Stamp (PTS), which instructs the decoder when to present or display the corresponding frame, and a Decode Time Stamp (DTS), which instructs the decoder when to decode the corresponding time stamp. Both time stamps are needed because bi-directional temporal compression requires frames to be sent to the decoder out of sequence. Thus, in the example shown in FIG. 3, P-frame 303, which is to be presented at time n+4, is sent to the decoder before B-frame 305 and B-frame 307, which are to be presented at times n+2 and n+3, respectively. This is because the decoder may need to refer to P-frame 303 before it can decode B-frame 305 and B-frame 307. As the Decode Time Stamps (DTS) show, in the example depicted in FIG. 3, the decoder is to decode P-frame 303 at time n+1, decode B-frame 305 as soon as it is received and present it at time n+2, decode B-frame 307 as soon as it is received and present it at time n+3, and present P-frame 303 at time n+4.

[0042]FIG. 4 is an illustration of an MPEG-2 transport stream packet. In the illustration shown in FIG. 4, the overall length of the transport stream packet is fixed at 188 bytes, but the length of the packet header (and correspondingly the length of the packet payload) may vary. In the example shown in FIG. 4, the packet header 401 comprises a Program Clock Reference (PCR) signal 410, which represents the 27 MHz clock used by the encoder of the payload data.

[0043]FIG. 5 provides a flow chart depicting a preferred embodiment of the method of the present invention for handling missing synchronization signals. In Step 500 of the embodiment depicted in FIG. 5, the MPEG decoder determines if it receives a synchronization signal. If so, the method proceeds to Step 510, where the decoder determines whether the absent-synchronization-signal flag is set. Under non-error conditions, the flag will not be set, and the method proceeds to Step 520, where it records synchronization information based on the received synchronization signals. In a preferred embodiment, the recorded synchronization information may simply comprise a log of the received synchronization signals. In an alternative preferred embodiment, the recorded synchronization information may be a histogram of the interarrival times of the synchronization signals. Following Step 520, the method proceeds back to Step 500, where the decoder again determines if it receives a synchronization signal.

[0044] In the preferred embodiment shown in FIG. 5, if the decoder does not receive a synchronization signal, it proceeds to Step 530, where it sets a flag indicating an absent synchronization signal, and then to Step 540, where it estimates the absent synchronization signal based on recorded synchronization information. In a preferred embodiment in which the recorded synchronization information comprises a histogram of the interarrival times of the synchronization signals, the estimated synchronization signal may be the arrival time of the previous synchronization signal plus the mean of the histogram of the interarrival times of the synchronization signals.

[0045] As shown in FIG. 5, in a preferred embodiment the method then proceeds to Step 550, where the estimated synchronization signal is used in place of the absent synchronization signal. In a preferred embodiment depicted in FIG. 5, the method then returns to Step 500, where the decoder again determines if it receives a synchronization signal.

[0046] As described above, when the decoder receives a synchronization signal, the preferred embodiment depicted in FIG. 5 proceeds to Step 510, where the decoder determines whether the absent-synchronization-signal flag is set. In the preferred embodiment shown in FIG. 5, if the flag is set, the method proceeds to Step 560, where the previously estimated synchronization signal is corrected based on the received synchronization signal. In an alternative preferred embodiment (not shown), the correction of the estimated synchronization signal may also be based on the recorded synchronization information. Returning to the preferred embodiment depicted in FIG. 5, the method then proceeds to Step 570, where the absent-synchronization-signal flag is reset, and then to Step 520, where the method records synchronization information based on the received synchronization signals. Following Step 520, the preferred embodiment of the method shown in FIG. 5 proceeds back to Step 500, where the decoder again determines if it receives a synchronization signal.

[0047]FIG. 6 provides a flow chart depicting a preferred embodiment of the method of the present invention for reducing the effects of untimely synchronization signals. In Step 600 of the embodiment depicted in FIG. 6, a phase error is measured between the signal generated by the phase-locked Loop (PLL) of the decoder and the Program Clock Reference (PCR) synchronization signal received by the decoder.

[0048] As shown in Step 610, if there is no phase error, the method returns to Step 600, where it again measures the phase error between the decoder's PLL signal and the received PCR signal.

[0049] In the preferred embodiment shown in FIG. 6, if there is a phase error, the method proceeds to Step 620, where it increments an error count, and then to Step 630, where the error count is compared against a predetermined error count threshold. If the error count exceeds the error count threshold, the preferred embodiment of the method depicted in FIG. 6 proceeds to Step 640, where it resets the decoder, and then starts over at Step 600.

[0050] As shown in the preferred embodiment depicted in FIG. 6, if the error count is below the error count threshold, the method proceeds to Step 650, where the phase error is compared to a predetermined phase error threshold.

[0051] In the preferred embodiment depicted in FIG. 6, if the phase error is below the phase error threshold, the method proceeds to Step 660, where the decoder PLL is adjusted based on the measured value of the phase error. Following Step 660, the preferred embodiment of the method shown in FIG. 6 returns to Step 600, where the method starts over.

[0052] If the phase error exceeds the predetermined phase error threshold, the preferred embodiment of the method shown in FIG. 6 proceeds to Step 670, where a determination is made if the phase error is a spike or an anomaly, meaning that a similarly large error has not occurred within a predetermined previous time period. In a preferred embodiment involving a VDSL transmission system in a communications networks comprised of twisted wire pair cables, the predetermined time period is approximately 0.75 milliseconds.

[0053] In the preferred embodiment depicted in FIG. 6, if it is determined that the phase error is a spike, the phase error is simply ignored, as shown in Step 680, since the phase error is likely to have been caused by a noise burst or other anomaly that is not likely to occur again.

[0054] In a preferred embodiment, if it is determined that the phase error is not a spike, the decoder PLL needs to be adjusted. However, the PLL should not be adjusted by the entire phase error, as doing so may cause undesirable artifacts in the presented image. Rather, the PLL is preferably adjusted according to a large-error-correction procedure, as shown in Step 690 of the preferred embodiment shown in FIG. 6. Such a procedure may involve adjusting the PLL by a predetermined fixed amount, or by a fraction of the measured phase error.

[0055] In a preferred embodiment involving a VDSL transmission system over a communications network comprised of twisted wire pair cables, the decoder stores both the maximum correction that the PLL can tolerate, and an average of the magnitude of previous PLL error corrections. If the measured phase error is substantially larger than the maximum tolerable PLL correction—e.g., 3-4 times larger than the maximum tolerable correction—the PLL is adjusted by the maximum tolerable correction. Otherwise, the PLL is adjusted by the average of previous PLL error corrections. Other suitable procedures will be apparent to those of skill in the art.

[0056] As depicted in FIG. 6, in a preferred embodiment, after the phase error is either ignored in Step 680 or acted upon in Step 690, the method returns to Step 600, where the method starts over.

[0057] Although the invention has been particularly described by reference to specific embodiments, it should be readily apparent to those of ordinary skill in the art that various changes and modifications may be made in form and details without departing from the spirit and scope of the invention. The appended claims are intended to cover such changes and modifications, so as to afford broad protection to the invention and its equivalents. 

What is claimed is:
 1. In an MPEG decoder for receiving video signals formed into a combination of I-frames, P-frames, and B-frames, a method for decoding MPEG signals when the absence of an I-frame is detected, comprising the step of decoding P-frames and B-frames that are received subsequent to the absent I-frame as if the absent I-frame had been received.
 2. In an MPEG decoder for receiving video signals formed into a combination of I-frames, P-frames, and B-frames, a method for decoding MPEG signals when the absence of an I-frame is detected, comprising the steps of: a) creating a new I-frame comprising an estimated synchronization signal; and b) decoding the new I-frame in place of the absent I-frame.
 3. The method of claim 2, wherein the estimated synchronization signal comprises an estimated Presentation Time Stamp (PTS).
 4. The method of claim 2, wherein the estimated synchronization signal comprises an estimated Program Clock Reference (PCR).
 5. In an MPEG decoder for receiving video signals formed into a combination of I-frames, P-frames, and B-frames, a method for decoding MPEG signals when the absence of an I-frame is detected, comprising: (a) receiving a plurality of synchronization signals prior to detecting the absence of an I-frame; (b) creating a new I-frame comprising an estimated synchronization signal wherein the estimated synchronization signal is based on the plurality of received synchronization signals; and (c) decoding the new I-frame in place of the absent I-frame.
 6. The method of claim 5, further comprising the steps of: a) receiving a valid synchronization signal after detecting the absence of an I-frame; and b) correcting the estimated synchronization signal based on the valid synchronization signal.
 7. The method of claim 6, wherein the correcting step is further based on the plurality of received synchronization signals.
 8. In an MPEG decoder comprised of a Phase-Locked Loop (PLL) that generates a synchronization signal, wherein the MPEG decoder receives a plurality of Program Clock Reference (PCR) signals, a method for reducing the effect of jitter in the PCR signals, comprising the steps of: a) measuring a phase error between the PLL synchronization signal and the received PCR signal; and b) adjusting the PLL based on the phase error if the phase error is below a predetermined phase error threshold.
 9. In an MPEG decoder comprised of a Phase-Locked Loop (PLL) that generates a synchronization signal, wherein is the MPEG decoder receives a plurality of Program Clock Reference (PCR) signals, a method for reducing the effect of jitter in the PCR signals, comprising the steps of: a) measuring a phase error between the PLL synchronization signal and the received PCR signal; and b) adjusting the PLL based on the phase error if the phase error is below a predetermined phase error threshold. c) determining, when the phase error is above a predetermined phase error threshold, whether the phase error is a spike; d) ignoring the phase error if the phase error is a spike; and e) adjusting the PLL according to a predetermined large-error-correction procedure if the phase error is not a spike.
 10. In an MPEG decoder comprised of a Phase-Locked Loop (PLL) that generates a synchronization signal, wherein the MPEG decoder receives a plurality of Program Clock Reference (PCR) signals, a method for reducing the effect of jitter in the PCR signals, comprising the steps of: a) measuring a phase error between the PLL synchronization signal and the received PCR signal; and b) adjusting the PLL based on the phase error if the phase error is below a predetermined phase error threshold. c) incrementing an error count responsive to the phase error; and d) resetting the MPEG decoder if the error count reaches a predetermined error count threshold.
 11. In an MPEG decoder comprised of a Phase-Locked Loop (PLL) that generates a synchronization signal, wherein the MPEG decoder receives a plurality of Program Clock Reference (PCR) signals, a method for reducing the effect of jitter in the PCR signals, comprising the steps of: a) measuring a phase error between the PLL synchronization signal and the received PCR signal; and b) adjusting the PLL based on the phase error if the phase error is below a predetermined phase error threshold; c) determining, when the phase error is above a predetermined phase error threshold, whether the phase error is a spike; d) ignoring the phase error if the phase error is a spike; e) adjusting the PLL according to a predetermined large-error-correction procedure if the phase error is not a spike. f) incrementing an error count responsive to the phase error; and g) resetting the MPEG decoder if the error count reaches a predetermined error count threshold. 